package com.weishenai.customerassistant.controller.weChat;

import com.weishenai.customerassistant.common.Result;
import com.weishenai.customerassistant.service.SubstationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@Api(tags = "小程序_供电所管理")
@Slf4j
@RestController
@RequestMapping("/wechat/substation")
public class SubstationWeChatController {
    @Autowired
    private SubstationService substationService;

    @ApiOperation(("小程序_查询所有的供电所信息"))
    @GetMapping("/selectAll")
    public Object selectAll() {
        return Result.success( substationService.selectAll());
    }
}
